package demo5;

public class Test {
    public static void Walk(Irun run){
        System.out.println("正在泡");
    }
    public static void main(String[] args) {
        Duck duck = new Duck("唐老鸭",1);
        duck.running();
        Walk(duck);

    }
}
